<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>Hello MUI</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<!--标准mui.css-->
		<link rel="stylesheet" href="css/mui.min.css">
		<link rel="stylesheet" href="css/index.css">
	</head>
	<body>
		<img src="images/b1.png" alt="" class="limg">
		<div class="loginWrap">
			<img src="images/b2.png" alt=""class="lb2">
			<div class="loginInner">
				<input type="text" placeholder="请输入身份证号">
			</div>
			<div class="loginInner">
				<input type="text" placeholder="请输入手机号">
			</div>
			<div class="loginInner">
				<input type="text" placeholder="请输入验证码">
				<span class="yzm">获取验证码</span>
			</div>
			<div class="loginBtn">
				<div class="dl">登录</div>
				<div class="reset">重置</div>
			</div>
		</div>
	</body>
	<script src="js/mui.min.js"></script>
	<script src="js/jquery.min.js"></script>
	<script>
		mui.init({
			swipeBack:true //启用右滑关闭功能
		});
		
		$(".dl").on("click",function(){
			localStorage.setItem("page",1)
			location.href="main.html"
		})
		
		
		var originalHeight = document.documentElement.clientHeight || document.body.clientHeight;
		
		window.onresize = function() {
		
		　　//软键盘弹起与隐藏  都会引起窗口的高度发生变化
		
		var resizeHeight = document.documentElement.clientHeight || document.body.clientHeight;
		
		if(resizeHeight * 1 < originalHeight * 1) { //resizeHeight<originalHeight证明窗口被挤压了
		
			$(".loginBtn").hide()
		
		   }else{
			   $(".loginBtn").show()
		   }
		
		}
	</script>
</html>